*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  width: 100%;
  height: 100%;
  font-family: "Noto Serif SC", "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  background: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
}
a {
  color: currentColor;
}
.post-view,
.post-view__article {
  padding: 0rem 2rem 6rem 2rem;
  overflow-x: hidden;
}
article.post-view__article .article__content h1,
article.post-view__article .article__content h2,
article.post-view__article .article__content h3,
article.post-view__article .article__content h4,
article.post-view__article .article__content h5,
article.post-view__article .article__content h6,
article.post-view__article .article__content p {
  margin: 1em 0;
}
article.post-view__article .article__content h1,
article.post-view__article .article__content h2 {
  font-size: 3.4rem;
  line-height: 4.4rem;
}
article.post-view__article .article__content h3 {
  font-size: 2.8rem;
  line-height: 3.6rem;
}
article.post-view__article .article__content h4,
article.post-view__article .article__content h5 {
  font-size: 2.2rem;
  line-height: 3rem;
}
article.post-view__article .article__content h6 {
  font-size: 1.8rem;
  line-height: 2.6rem;
}
article.post-view__article .article__content p,
article.post-view__article .article__content li,
article.post-view__article .article__content ol,
article.post-view__article .article__content table,
article.post-view__article .article__content code {
  font-size: 1.4rem;
  line-height: 2.2rem;
}
article.post-view__article .article__content small {
  font-size: 1rem;
}
article.post-view__article .article__content a {
  box-shadow: inset 0 -0.1em 0 #333;
  transition: all 0.3s cubic-bezier(0.71, 0, 0, 0.99);
  text-decoration: none;
}
article.post-view__article .article__content a:hover {
  box-shadow: inset 0 -0.8em 0 #9dab86;
}
article.post-view__article .article__content blockquote {
  border-left: 2px solid #333;
  padding: 0em 2rem;
}
article.post-view__article .article__content .gutter {
  width: 3em;
  text-align: center;
  background: #f8f8f8;
  border-right: 1px solid #ccc !important;
}
article.post-view__article .article__content code.hljs {
  font-size: 1.4rem;
  line-height: 2.2rem;
  width: 100%;
  overflow-x: scroll;
  max-width: 80rem;
  padding: 0.5em 1em;
  margin: 1em 0;
}
article.post-view__article .article__content table code.hljs {
  margin: 0;
}
article.post-view__article .article__content code:not(.hljs) {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: #333;
  font-weight: bold;
  border: 1px solid #9dab86;
  background: #fff;
  box-shadow: 0.2em 0.2em 0 0 #9dab86;
  padding: 0.1em 0.4em;
  margin: 0 0.4em;
  vertical-align: bottom;
}
article.post-view__article .article__content ul,
article.post-view__article .article__content ol {
  font-size: 1.6rem;
  line-height: 2.4rem;
  padding-left: 2em;
}
article.post-view__article .article__content ul li,
article.post-view__article .article__content ol li {
  padding: 0.2em 0;
}
article.post-view__article .article__content img {
  width: auto;
  max-width: 100%;
  margin: 2rem 0;
}
article.post-view__article .article__content .highlight table {
  width: 100%;
  border: none;
  table-layout: fixed;
  overflow: auto;
}
article.post-view__article .article__content .highlight table border,
article.post-view__article .article__content .highlight table th,
article.post-view__article .article__content .highlight table td {
  border: none;
  padding: 0;
}
article.post-view__article .article__content table {
  margin: 2rem 0;
  border-spacing: 0;
  border-collapse: collapse;
  border-top: 2px #333 solid;
  border-bottom: 2px #333 solid;
}
article.post-view__article .article__content table th,
article.post-view__article .article__content table td {
  border: 1px #ccc solid;
  padding: 0.3em 1em;
}
article.post-view__article .article__content table th {
  border-bottom: 2px #333 solid;
}
article.post-view__article .article__content table td:last-child,
article.post-view__article .article__content table th:last-child {
  border-right: none;
}
article.post-view__article .article__content table td:first-child,
article.post-view__article .article__content table th:first-child {
  border-left: none;
}
article.post-view__article .article__content .mjx-chtml {
  font-size: 1.6rem;
}
@media screen and (max-width: 780px) {
  .post-view__article {
    padding: 0rem 1rem 6rem 1rem;
  }
  .post-view__article .article__content .mjx-chtml {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 580px) {
  article.post-view__article .article__content .mjx-chtml {
    font-size: 1.2rem;
  }
}
.footer {
  text-align: center;
  padding: 3rem 0;
  background: #9dab86;
  font-size: 1.4rem;
  line-height: 2.2rem;
}
@media screen and (max-width: 580px) {
  .footer {
    font-size: 10px;
  }
}
.head {
  padding: 8rem 0;
  text-align: center;
  font-family: 'Abril Fatface', cursive, 'Alata', 'Noto Sans TC';
  position: relative;
}
.head__inner {
  display: inline-block;
}
.head__inner a {
  text-decoration: none;
  color: #444;
}
.head__inner h1 {
  font-size: 6.4rem;
  line-height: 8.2rem;
  margin-bottom: 1rem;
  font-weight: 400;
}
.head__inner p {
  font-size: 1.4rem;
  line-height: 2.2rem;
}
.bottom-line-1 {
  height: 3px;
  width: 100%;
  background: #333;
  margin-bottom: 3px;
}
.bottom-line-2 {
  height: 6px;
  width: 100%;
  background: #333;
}
@media screen and (max-width: 780px) {
  .head__inner h1 {
    font-size: 4.2rem;
    line-height: 5.6rem;
  }
}
.horizontal-line {
  width: 100%;
  height: 2px;
  background: #333;
}
.posts {
  padding: 2rem;
}
.posts-item {
  padding: 1.4rem 1rem;
  margin: 1rem 0;
  border-bottom: 1px solid #dedede;
  position: relative;
  background: #fff;
}
.posts-item--pintop::before {
  content: '';
  width: 70%;
  height: 70%;
  position: absolute;
  top: 0;
  right: 0;
  box-shadow: 8px -8px 20px rgba(0,0,0,0.1);
  transform-origin: 100% 0%;
  transform: skew(-5deg, -5deg);
  z-index: -1;
}
.posts-item--pintop::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -19px;
  width: 60px;
  height: 60px;
  background-image: url("");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.posts-item:hover h2 a {
  box-shadow: inset 0 -0.8em 0 #9dab86;
}
.posts-item__title {
  font-size: 5.2rem;
  line-height: 6.6rem;
  margin-bottom: 6rem;
}
.posts-item__title a {
  text-decoration: none;
  box-shadow: inset 0 -0.3em 0 #9dab86;
  transition: box-shadow 0.5s cubic-bezier(0.71, 0, 0, 0.99);
}
.posts-item__title--image {
  margin-bottom: 0;
}
.posts-item__image {
  width: 100%;
  height: 20rem;
  margin: 2.4rem 0;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 0 5px 0px rgba(0,0,0,0.15);
}
.posts-item__excerpt {
  font-size: 1.4rem;
  line-height: 2.2rem;
  margin: 2rem 0 0 0;
  color: #444;
}
.posts-item__excerpt img {
  width: 100%;
}
.post__tags,
.post__date {
  position: relative;
  font-size: 1.4rem;
  line-height: 2.2rem;
  display: inline-block;
}
.post__tags::before,
.post__date::before {
  content: '';
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 1em;
  height: 1em;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.post__date {
  padding-left: 1.4em;
  padding-right: 3.4em;
}
.post__date::before {
  background-image: url("");
}
.post__tags {
  padding-left: 1.4em;
  padding-right: 0.8em;
  text-decoration: underline;
}
.post__tags::before {
  background-image: url("");
}
@media screen and (max-width: 780px) {
  .posts {
    padding: 1rem;
  }
  .posts-item__title {
    font-size: 3.4rem;
    line-height: 4.4rem;
    margin-bottom: 4rem;
  }
  .posts-item__title--image {
    margin-bottom: 0;
  }
}
.main .main__2-col,
.page .main__2-col {
  display: grid;
  grid-template-columns: auto 30rem;
}
.paper-container {
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  padding: 0 2rem;
  max-width: 98rem;
}
@media screen and (max-width: 580px) {
  .main .main__2-col,
  .page .main__2-col {
    grid-template-columns: 1fr;
  }
}
.sidebar {
  font-size: 1.4rem;
  line-height: 2.2rem;
  padding: 2rem;
  margin: 2rem;
  border-left: 1px solid #d3d3d3;
  height: calc(100% - 4rem);
}
.sidebar h2 {
  font-size: 2.2rem;
  line-height: 3rem;
  display: inline-block;
  padding: 0 0.2em;
  box-shadow: inset 0 -0.8em 0 #ccc;
}
.sidebar li {
  list-style-type: none;
}
.sidebar__link,
.sidebar__archives,
.sidebar__categories,
.sidebar__tags {
  padding: 0 0 0 1em;
  border-left: 1px solid #333;
  margin: 1.6rem 0 1.6rem 1rem;
}
.sidebar__link a,
.sidebar__archives a,
.sidebar__categories a,
.sidebar__tags a {
  box-shadow: inset 0 -0.1em 0 #333;
  transition: all 0.3s cubic-bezier(0.71, 0, 0, 0.99);
  text-decoration: none;
}
.sidebar__link a:hover,
.sidebar__archives a:hover,
.sidebar__categories a:hover,
.sidebar__tags a:hover {
  box-shadow: inset 0 -0.8em 0 #9dab86;
}
.sidebar__tags li {
  display: inline-block;
  padding: 0 0.4em;
}
.sidebar__button {
  display: none;
}
@media screen and (max-width: 580px) {
  .sidebar {
    width: 100%;
    height: auto;
    max-height: 100vh;
    border: 0.8rem #9dab86 solid;
    position: fixed;
    top: 0;
    right: 0;
    padding: 4rem;
    margin: 0;
    overflow-y: scroll;
    background: #fff;
    z-index: 2;
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.15, 1);
    transform: translateY(-100%);
  }
  .sidebar--expend {
    transform: translateY(0);
  }
  .sidebar__button {
    display: block;
    width: 3rem;
    height: 3rem;
    background: #9dab86;
    background-image: url("../../img/icon-menu-sprite.svg");
    background-position: center 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: fixed;
    top: 0.8rem;
    right: 3rem;
    z-index: 5;
    transition: background-position 0.3s ease-out;
  }
  .sidebar__button--expend {
    background-position: center 0;
  }
}
.paginator {
  text-align: center;
  font-size: 1.4rem;
  line-height: 2.2rem;
  padding: 5rem 0;
}
.paginator a {
  display: inline-block;
}
.paginator .extend {
  text-decoration: none;
  padding: 1.5rem 5rem;
  border: 2px solid #333;
  background: #9dab86;
}
.paginator .prev,
.paginator .next {
  position: relative;
}
.paginator .prev::before,
.paginator .next::before {
  content: '';
  width: 1em;
  height: 1em;
  background-image: url("../img/icon-left-arrow.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  left: calc(5rem - 1em);
  transform: translate(-50%, -50%);
}
.paginator .next::before {
  left: auto;
  right: calc(5rem - 1em);
  transform: translate(50%, -50%) scaleX(-1);
}
.paginator .page-number {
  font-size: 1.8rem;
  line-height: 2.6rem;
  padding: 0 0.5em;
}
@media screen and (max-width: 580px) {
  .footer {
    font-size: 10px;
  }
}
.pre-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 5.5rem 3.5rem;
}
.pre-next .pre-button,
.pre-next .next-button {
  font-size: 1.4rem;
  line-height: 2.2rem;
  padding: 1em;
  position: relative;
}
.pre-next .pre-button::before,
.pre-next .next-button::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 1.5em;
  height: 1.5em;
  background-image: url("../img/icon-left-arrow.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.pre-next .pre-button {
  padding-left: 2em;
}
.pre-next .pre-button::before {
  left: 0;
  transform: translateY(-50%);
}
.pre-next .next-button {
  padding-right: 2em;
}
.pre-next .next-button::before {
  right: 0;
  transform: translateY(-50%) scale(-1);
}
@media screen and (max-width: 780px) {
  .pre-next {
    justify-content: center;
  }
}
.location-bar {
  position: relative;
}
.location-bar .line-1 {
  margin-bottom: 2px;
}
.location-bar .text {
  text-align: center;
  font-size: 1.4rem;
  line-height: 2.2rem;
  margin: 0.2em 0;
  padding: 0 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-bar .line-1,
.location-bar .line-2,
.location-bar .line-3 {
  background: #333;
}
.switch-button {
  height: 0;
}
.switch-button input[type=checkbox] {
  height: 0;
  width: 0;
  visibility: hidden;
}
.switch-button label {
  cursor: pointer;
  text-indent: -9999px;
  width: 3rem;
  height: 2rem;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-border-radius: 10rem;
  -moz-border-radius: 10rem;
  border-radius: 10rem;
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  z-index: 1;
}
.switch-button label:after {
  content: '';
  background: #fff;
  width: 1rem;
  height: 1rem;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  position: absolute;
  top: 0.5rem;
  left: 0.4rem;
  transition: 300ms ease-in-out;
}
.switch-button input:checked + label:after {
  left: calc(100% - 5px);
  -webkit-transform: translateX(-100%);
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  -o-transform: translateX(-100%);
  transform: translateX(-100%);
}
.darkmode-mask {
  width: 100vw;
  height: 100vh;
  background-color: #f0f0f0;
  position: fixed;
  top: 0;
  left: 0;
  mix-blend-mode: difference;
  z-index: 10;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 300ms ease-in-out, opacity 300ms ease-in-out;
}
.darkmode-mask--dark {
  visibility: visible;
  opacity: 1;
}
.tocbot {
  overflow: hidden;
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
  margin-bottom: 1.6rem;
  background: #fff;
}
.tocbot .toc__content {
  border-left: 1px solid #222;
  margin: 1.6rem 0 0 1rem;
}
.tocbot .toc-list {
  padding: 0 0 0 1em;
}
.tocbot .toc-link {
  text-decoration: none;
}
.tocbot .toc-link::before {
  width: 2px;
  left: 1rem;
}
.tocbot .is-active-link::before {
  background: #9dab86;
}
@media screen and (max-width: 780px) {
  .tocbot {
    position: static;
  }
}
@media screen and (max-width: 1080px) {
  .tocbot {
    top: 0.8rem;
  }
}
.mask-border {
  position: relative;
  z-index: 10;
  pointer-events: none;
}
.mask-border::before {
  content: '';
  width: 100%;
  height: 100vh;
  border: 1rem #9dab86 solid;
  position: fixed;
  top: 0;
  left: 0;
}
img {
  -webkit-user-drag: none;
}
::selection {
  color: #fff;
  background: #333;
}
/* width */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: #ccc;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #929292;
}
@media screen and (max-width: 1080px) {
  .mask-border::before {
    border: 0.8rem #9dab86 solid;
  }
}
